﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="History.aspx.cs" Inherits="DoAnWeb.History" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <table class="style1" cellpadding="5px">
        <tr>
            <td class="style2" colspan="2" 
                style="text-align: center; font-size: 33px; background-color: #CCCCFF;">
                <strong>Lịch sử mua hàng</strong></td>
                
        </tr>
        <tr>
        <td>
                
                </td>
                <td>
                
                </td>
        </tr>
     </table>
    <asp:GridView ID="gvListHistory" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" BackColor="White" BorderColor="#3366CC" BorderStyle="None" 
        BorderWidth="1px" DataKeyNames="MaDonHang" 
       >
        <Columns>
            <asp:BoundField HeaderText="Mã đơn hàng" DataField="MaDonHang" />
            <asp:BoundField HeaderText="Số loại sản phẩm" DataField="SoLoai" />
            <asp:BoundField HeaderText="Số lượng sản phẩm" DataField="SoLuong" />
            <asp:BoundField HeaderText="Tổng tiền" DataField="TongTien" 
                DataFormatString="{0:#,#.##} VNĐ" >
            <ItemStyle Width="100px" />
            </asp:BoundField>
            <asp:BoundField HeaderText="Ngày đặt" DataField="NgayDat" 
                DataFormatString="{0:MM/dd/yyyy}" />
            <asp:TemplateField HeaderText="Xem thông tin">
                <ItemTemplate>
                    <asp:HyperLink ID="hlkXemChiTiet" runat="server" 
                        NavigateUrl='<%# "HistoryDetails.aspx?oderID=" + Eval("MaDonHang") %>'>Xem chi tiết</asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
        <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
        <RowStyle BackColor="White" ForeColor="#003399" />
        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
        <SortedAscendingCellStyle BackColor="#EDF6F6" />
        <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
        <SortedDescendingCellStyle BackColor="#D6DFDF" />
        <SortedDescendingHeaderStyle BackColor="#002876" />
    </asp:GridView>
     <br />
</asp:Content>
